|
|
|
|
|
|
|
Figure 18.9.
Displaying the rdoConnection properties. |
|
|
|
|
|
|
|
|
Note that the Version property of the rdoConnection object reports the version number of the ODBC driver used to establish the connection to the remote data source. |
|
|
|
|
|
|
|
|
After a connection is established between your program and the remote data, you can use the rdoResultset object to create a collection of records. The rdoResultset object is the RDO equivalent of the Microsoft Jet Recordset object. rdoResultset contains a direct reference to all the rows and columns in the dataset. |
|
|
|
|
|
|
|
|
You can have multiple rdoResultset objects for each rdoConnection object. All Resultset objects are stored in the Resultsets collection of the rdoConnection object. |
|
|
|
|
|
|
|
|
Add a new button to the project. Set its Name property to cmdRDOResultset and its Caption to Resultset. Now add the code in Listing 18.10 to the cmdRDOResultset_Click event. |
|
|
|
|
|
|
|
|
Listing 18.10. Coding the cmdRDOResultset_Click event. |
|
|
|
|
|
|
|
|
Private Sub cmdRDOResultset_Click()
'
' show result set properties
'
Dim rdoEnv As rdoEnvironment
Dim rdoCon As rdoConnection
Dim rdoRS As rdoResultset
Dim strMsg As String
Dim aryEditMode As Variant
Dim aryLockType As Variant |
|
|
|
|
|